package com.itheima.shop.state1;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-25 09:27
 **/
public class ResetStoreBehavior1 implements State1 {
    @Override
    public void setOrder(Order1 order) {
        System.out.println("订单取消");
        order.setState1(this);
    }
    
    @Override
    public void execute() {
        System.out.println("执行了回滚库存");
    }
}
